﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MarketData.cs" company="">
//   
// </copyright>
// <summary>
//   The market data.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;

namespace Systemathics.FrameWork
{
    [Serializable]
    public sealed class MarketData : EventArgs, ICloneable
    {
        public Guid Id { get; private set; }
        public Decimal Open { get; set; }
        public Decimal High { get; set; }
        public Decimal Low { get; set; }
        public Decimal Close { get; set; }
        public Decimal? VWAP { get; set; }
        public long Volume { get; set; }
        public long TradeCount { get; set; }

        public MarketData(Guid id)
        {
            Id = id;
            High = 0;
            Low = Decimal.MinusOne;
            Close = 0;
            Open = 0;
            Volume = 0;
            TradeCount = 0;
        } 

        #region ICloneable Members

        object ICloneable.Clone()
        {
            return MemberwiseClone();
        }

        #endregion
    }
}